url
( service in module ng
)
This method is getter / setter.
Return url (e.g. /path?a=b#hash
) when called without any parameter.
Change path, search and hash, when called with parameter and return $location
.
url(optional) – {string=} –
New url without base prefix (e.g. /path?a=b#hash
)
{string}
– url